Skip to content

ci(workflows): add a Plumber check for token scopes and locked actions - #5945

Merged
SteKoe merged 1 commit into
codecentric:masterfrom
Totara-thib:plumber-check
Nov 30, 2026
Merged

SteKoe merged 1 commit into
codecentric:masterfrom
Totara-thib:plumber-check

Conversation

@Totara-thib

@Totara-thib Totara-thib commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Hi again. Follows up on #5928, merged earlier.

A workflow runs the Plumber CLI on pull requests and on pushes to master. It checks the workflow files for what #5928 fixed: missing token scopes, checkouts that keep the job token, images without a digest and actions on movable tags. Today it scores A 100/100.

  • One job, about two minutes, read-only token plus actions: read and security-events: write for code scanning.
  • It fails under 85 points, so one small finding does not block a pull request.
  • Its two actions are in actions.lock, Renovate updates them like the others.
  • .plumber.yaml adds your three third-party actions (Pages deploy, release, issue metrics) to the default trust list.

Optional: public score and badge

This PR publishes nothing outside the repository and adds no badge. The score can be published the way OpenSSF Scorecard does and shown as a README badge, with no token or secret. Say so and I add both.

I work on Plumber. If you do not want the tool, no hard feelings, say so and I close this PR, the hardening stands on its own.

A small workflow runs the Plumber CLI on pull requests and on pushes to
master. It checks the workflow files for the classes fixed in codecentric#5928
(token scopes, stored checkout credentials, unpinned images and actions)
and fails under 85 points.

Its two actions are referenced by version and recorded in actions.lock
with a second gh actions-lock run. The .plumber.yaml overlay keeps the
default trust list and adds the three third-party actions the docs,
release and issue-metrics workflows use. Nothing is published outside
the repository.
@Totara-thib
Totara-thib requested a review from a team as a code owner November 20, 2026 12:14
@SteKoe
SteKoe merged commit 8d3a0e1 into codecentric:master Nov 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants